home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d18
/
turbotut.arc
/
WHILELP.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1989-06-30
|
281b
|
14 lines
PROGRAM while_loop_example;
VAR counter : INTEGER;
BEGIN
counter := 4;
WHILE counter < 20 DO
BEGIN
WRITE('We are in the WHILE loop, waiting ');
WRITE('for the counter to reach 20. It is',counter:4);
WRITELN;
counter := counter + 2;
END;
END.